package com.ruoyi.dingtalk.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

@Configuration
public class AppConfig {

    private String appKey;

    private String appSecret;

    private String corpId;

    private Long agentId;

    private String domain;

    private String aes_key;

    private String token;

    private String processCode;

    public String getProcessCode() {
        return processCode;
    }

    @Value("${app.processCode}")
    public void setProcessCode(String processCode) {
        this.processCode = processCode;
    }

    public Long getAgentId() {
        return agentId;
    }

    @Value("${app.agent_id}")
    public void setAgentId(String agentId) {
        this.agentId = Long.parseLong(agentId);
    }

    public String getAppKey() {
        return appKey;
    }

    @Value("${app.app_key}")
    public void setAppKey(String appKey) {
        this.appKey = appKey;
    }

    public String getAppSecret() {
        return appSecret;
    }

    @Value("${app.app_secret}")
    public void setAppSecret(String appSecret) {
        this.appSecret = appSecret;
    }

    public String getCorpId() {
        return corpId;
    }

    @Value("${app.corp_id}")
    public void setCorpId(String corpId) {
        this.corpId = corpId;
    }

    public String getDomain() {
        return domain;
    }

    @Value("${app.domain}")
    public void setDomain(String domain) {
        this.domain = domain;
    }

    public String getAes_key() {
        return aes_key;
    }
    @Value("${app.aes_key}")
    public void setAes_key(String aes_key) {
        this.aes_key = aes_key;
    }

    public String getToken() {
        return token;
    }
    @Value("${app.token}")
    public void setToken(String token) {
        this.token = token;
    }
}